import request from '@/utils/request'

// 查询DiseaseDepartmentsMiddle列表
export function listDiseaseDepartmentsMiddle(query) {
  return request({
    url: '/doctor/DiseaseDepartmentsMiddle/list',
    method: 'get',
    params: query
  })
}

// 查询DiseaseDepartmentsMiddle详细
export function getDiseaseDepartmentsMiddle(id) {
  return request({
    url: '/doctor/DiseaseDepartmentsMiddle/' + id,
    method: 'get'
  })
}

// 新增DiseaseDepartmentsMiddle
export function addDiseaseDepartmentsMiddle(data) {
  return request({
    url: '/doctor/DiseaseDepartmentsMiddle',
    method: 'post',
    data: data
  })
}

// 修改DiseaseDepartmentsMiddle
export function updateDiseaseDepartmentsMiddle(data) {
  return request({
    url: '/doctor/DiseaseDepartmentsMiddle',
    method: 'put',
    data: data
  })
}

// 删除DiseaseDepartmentsMiddle
export function delDiseaseDepartmentsMiddle(id) {
  return request({
    url: '/doctor/DiseaseDepartmentsMiddle/' + id,
    method: 'delete'
  })
}
